package cn.home.sysmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.sysmanagement.mapper.HomeDoctorTagMapper;
import cn.home.sysmanagement.domain.HomeDoctorTag;
import cn.home.sysmanagement.service.IHomeDoctorTagService;

/**
 * 医生-标签Service业务层处理
 * 
 * @author homedoctor
 * @date 2025-04-14
 */
@Service
public class HomeDoctorTagServiceImpl implements IHomeDoctorTagService 
{
    @Autowired
    private HomeDoctorTagMapper homeDoctorTagMapper;

    /**
     * 查询医生-标签
     * 
     * @param doctorId 医生-标签主键
     * @return 医生-标签
     */
    @Override
    public List<HomeDoctorTag> selectHomeDoctorTagByDoctorId(Long doctorId)
    {
        return homeDoctorTagMapper.selectHomeDoctorTagByDoctorId(doctorId);
    }

    /**
     * 查询医生-标签列表
     * 
     * @param homeDoctorTag 医生-标签
     * @return 医生-标签
     */
    @Override
    public List<HomeDoctorTag> selectHomeDoctorTagList(HomeDoctorTag homeDoctorTag)
    {
        return homeDoctorTagMapper.selectHomeDoctorTagList(homeDoctorTag);
    }

    /**
     * 新增医生-标签
     * 
     * @param homeDoctorTag 医生-标签
     * @return 结果
     */
    @Override
    public int insertHomeDoctorTag(HomeDoctorTag homeDoctorTag)
    {
        return homeDoctorTagMapper.insertHomeDoctorTag(homeDoctorTag);
    }

    /**
     * 修改医生-标签
     * 
     * @param homeDoctorTag 医生-标签
     * @return 结果
     */
    @Override
    public int updateHomeDoctorTag(HomeDoctorTag homeDoctorTag)
    {
        return homeDoctorTagMapper.updateHomeDoctorTag(homeDoctorTag);
    }

    /**
     * 批量删除医生-标签
     * 
     * @param doctorIds 需要删除的医生-标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeDoctorTagByDoctorIds(Long[] doctorIds)
    {
        return homeDoctorTagMapper.deleteHomeDoctorTagByDoctorIds(doctorIds);
    }

    /**
     * 删除医生-标签信息
     * 
     * @param doctorId 医生-标签主键
     * @return 结果
     */
    @Override
    public int deleteHomeDoctorTagByDoctorId(Long doctorId)
    {
        return homeDoctorTagMapper.deleteHomeDoctorTagByDoctorId(doctorId);
    }
}
